package io.renren.membermanage.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.renren.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("c_model")
@Schema
public class Model extends BaseEntity {

    @TableField("model_name")
    private String modelName;

    @TableField("model_real_name")
    private String modelRealName;

    @TableField("keyword_matching")
    private String keywordMatching;

    @TableField("model_type")
    private Integer modelType;

    @TableField("ss_output_name")
    private String ssOutputName;

    @TableField("picture_save_path")
    private String pictureSavePath;

    @TableField("picture_visit_path")
    private String pictureVisitPath;

    @TableField("model_link")
    private String modelLink;

    @TableField("is_use")
    private int isUse = 0;

    @TableField("model_owner")
    private Integer modelOwner = 1;

    @TableField("sys_model_sign")
    private Integer sysModelSign;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("uploader")
    private Long uploader;

    @TableField("description")
    private String description;

    @TableField(exist = false)
    private String uploaderName;

    /**
     * 图片地址
     */
    @TableField(exist = false)
    private String browsesPath;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("label_id")
    private Long labelId;

    @TableField(exist = false)
    private String labelName;
}
